FROM nginx

RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && \
    echo "Asia/Shanghai" > /etc/timezone

RUN rm /etc/nginx/conf.d/nginx.conf

ADD nginx.conf /etc/nginx/conf.d/

COPY dist/ /usr/share/nginx/html/

RUN rm /etc/nginx/nginx.conf
ADD nginx.conf /etc/nginx/

RUN chmod -R  777 /usr/share/nginx/html
